package com.lanyam.travel.base.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lanyam.travel.base.dao.OrderRejectMapper;
import com.lanyam.travel.base.entity.OrderReject;
import com.lanyam.travel.base.service.IOrderRejectService;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author rosson
 * @since 2020-03-15
 */
@Service
public class OrderRejectServiceImpl implements IOrderRejectService {

	@Resource
	private OrderRejectMapper orderRejectMapper;
	
	@Override
	public void insert(OrderReject reject) {
		// TODO Auto-generated method stub
		orderRejectMapper.insert(reject);
	}

	@Override
	public List<OrderReject> getOrderRejectRecord(String orderId) {
		// TODO Auto-generated method stub
		QueryWrapper<OrderReject> wrapper = new QueryWrapper<OrderReject>();
		wrapper.eq("order_id", orderId);
		List<OrderReject> selectList = orderRejectMapper.selectList(wrapper);
		return selectList;
	}

}
